package com.example.demo.service;

import com.example.demo.abs.AbstractPay;
import com.example.demo.vo.PayVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


@Service
public class WxPayService extends AbstractPay {

    private static final Logger LOG = LoggerFactory.getLogger(WxPayService.class);


    /**
     * 微信支付
     * @param payVO
     */
    public void wxPay(PayVO payVO){
        // 微信支付前的个性化逻辑
        doPay(payVO);
        // 微信支付后的个性化逻辑
    }

    @Override
    protected void doBusiness(PayVO payVO) {
        LOG.info("微信支付");
    }
}
